package com.rpframework.website.daole.service;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import com.rpframework.core.BaseService;
import com.rpframework.core.api.FileService;
import com.rpframework.module.common.dao.ICountyDao;
import com.rpframework.utils.AlgorithmEnum;
import com.rpframework.utils.AlgorithmUtils;
import com.rpframework.utils.NumberUtils;
import com.rpframework.utils.Pager;
import com.rpframework.website.daole.dao.IStationDao;
import com.rpframework.website.daole.dao.IUserDao;
import com.rpframework.website.daole.domain.Station;
import com.rpframework.website.daole.domain.User;
import com.rpframework.website.daole.util.HConstants;

/**
 * 
 * @author tian
 * @date 2016年3月23日 下午5:50:24
 */
@Service
public class StationService extends BaseService {
	public  @Resource IStationDao iDao;
	
	
	public Pager<Station> getPager(Pager<Station> pager) {
		long startTime = System.currentTimeMillis();
		List<Station> list = iDao.doPager(this.packageMyBatisParam(pager));
		pager.setItemList(list);
		pager.setCostTime(System.currentTimeMillis() - startTime);
		return pager;
	}
	

	public List<Station> getListByProvinceCode(String aderessCode) {
		return iDao.getListByProvinceCode(aderessCode);
	}

}
